home *** CD-ROM | disk | FTP | other *** search
/ LG Super CD / LG Super CD.iso / bitpim / bitpim-0.62-setup.exe / {app} / bitpim.exe / __future__.pyo (.txt) next >
Encoding:
Python Compiled Bytecode  |  2003-11-06  |  1.8 KB  |  37 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.3)
  3.  
  4. all_feature_names = [
  5.     'nested_scopes',
  6.     'generators',
  7.     'division']
  8. __all__ = [
  9.     'all_feature_names'] + all_feature_names
  10. CO_NESTED = 16
  11. CO_GENERATOR_ALLOWED = 4096
  12. CO_FUTURE_DIVISION = 8192
  13.  
  14. class _Feature:
  15.     
  16.     def __init__(self, optionalRelease, mandatoryRelease, compiler_flag):
  17.         self.optional = optionalRelease
  18.         self.mandatory = mandatoryRelease
  19.         self.compiler_flag = compiler_flag
  20.  
  21.     
  22.     def getOptionalRelease(self):
  23.         return self.optional
  24.  
  25.     
  26.     def getMandatoryRelease(self):
  27.         return self.mandatory
  28.  
  29.     
  30.     def __repr__(self):
  31.         return '_Feature' + repr((self.optional, self.mandatory, self.compiler_flag))
  32.  
  33.  
  34. nested_scopes = _Feature((2, 1, 0, 'beta', 1), (2, 2, 0, 'alpha', 0), CO_NESTED)
  35. generators = _Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), CO_GENERATOR_ALLOWED)
  36. division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), CO_FUTURE_DIVISION)
  37.